<!--简化版的主体框架 由于框架页面是每个页面都必然会包含的，因此公共的导入文件都在此导入 -->
<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page isELIgnored="false" %>
<title>忆唐|Etown|Extjs|JQuery|HTML5|Flex|AS3|脚本|脚本娃娃|脚本技术|前端|UI设计</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link href="${pageContext.request.contextPath}/css/etown_common.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="${pageContext.request.contextPath}/common/jquery1.4.2.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/common/jquery.timers-1.2.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/common/jquery.utils/jquery.utils.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/common/dump.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/common/etownCommon.js"></script>
<div id="topContainer">
	<div id="topDiv1">
		<span style="width: 80px;" align="center"><a href="${pageContext.request.contextPath}/index.jsp">首页</a></span>
		<span style="width: 80px;" align="center"><a href="${pageContext.request.contextPath}/news/newsIndex.jsp">新闻</a></span>
		<span style="width: 80px;" align="center"><a href="${pageContext.request.contextPath}/forum/loadPosts30.action?blockId=5000">论坛</a></span>
		<span style="width: 80px;" align="center"><a href="${pageContext.request.contextPath}/blog/blogIndex.jsp">博客</a></span>
		<span style="width: 100px;" align="center"><a href="${pageContext.request.contextPath}/magzine/magzineIndex.jsp">《码农》</a></span>
		<span style="width: 100px;" align="center"><a href="${pageContext.request.contextPath}/exam/exam.jsp">江南贡院</a></span>
		<!-- 
		<span style="width: 100px;" align="center"><a href="#">企业服务</a></span>
		-->
		<span style="width: 100px;" align="center"><a href="${pageContext.request.contextPath}/app/appIndex.jsp">特色应用</a></span>
	</div>
	
	<c:if test="${userName!=null}">
		<div id="userInfo" class="divCommon area2">
			<span>欢迎<font color="#FF6600">${nickName}</font></span>
			<span><a href="#">收件箱</a></span>
			<span><a href="#">我的主页</a></span>
			<c:if test="${SYS_MGR!=null}">
				<span><a href="${pageContext.request.contextPath}/sysmng/sysMngIndex.jsp">系统后台</a>
				</span>
			</c:if>
			<span><a id="logoutBtn" href="#">退出</a></span>
		</div>
	</c:if>
	<c:if test="${userName==null}">
		<div id="defaultInfo" class="divCommon area3">
			<span>您尚未登录</span>
			<span><a id="loginBtn" href="#">登录</a></span>
			<span><a id="registBtn" href="#">注册</a></span>
		</div>
	</c:if>
	<div id="footer">
		&copy; 2010-2011　忆唐[沪ICP备10219019号] | 联系我们 | 友情链接 | 站点统计
	</div>
	<div id="sysMsgArea">
	</div>
</div>
<script type="text/javascript">
	$(document).ready(function(){
		$("#loginBtn").click(function(){
			window.location.href="${pageContext.request.contextPath}/usermng/login.jsp";
		});
		$("#logoutBtn").click(function(){
			window.location.href="${pageContext.request.contextPath}/logout.action";
		});
		$("#registBtn").click(function(){
			window.location.href="${pageContext.request.contextPath}/usermng/regist.jsp";
		});
	})
</script>